package com.yilin.tms.core.entity.order.goods;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yilin.tms.core.commons.base.BaseNoteEntity;
import com.yilin.tms.core.commons.annotation.Explain;

import javax.persistence.*;
import java.util.List;


@Entity
@Table(name = "goods_order_note")
@TableName(value = "goods_order_note")
public class GoodsOrderNote extends BaseNoteEntity {

    @Explain("货源ID")
    @Column(name = "goods_order_id")
    private String goodsOrderId;

    @Explain("节点货物量")
    @Column(name = "goods_note_measure")
    private Double goodsNoteMeasure;
    @Explain("节点货物量")
    @Column(name = "goods_note_transport_cost")
    private Double goodsNoteTransportCost;
    @Explain("节点已装载量")
    @Column(name = "goods_note_embark_measure")
    private Double goodsNoteEmbarkMeasure;
    @Explain("计量单位")
    @Column(name = "measure_unit")
    private String measureUnit;

    /**
     * 货物LIST
     * */
    @Transient
    @TableField(exist = false)
    @Explain("货源货物List")
    private List<GoodsOrderNoteDetail> goodsOrderNoteDetailList;

    public String getMeasureUnit() {
        return measureUnit;
    }

    public void setMeasureUnit(String measureUnit) {
        this.measureUnit = measureUnit;
    }

    public Double getGoodsNoteMeasure() {
        return goodsNoteMeasure;
    }

    public void setGoodsNoteMeasure(Double goodsNoteMeasure) {
        this.goodsNoteMeasure = goodsNoteMeasure;
    }

    public Double getGoodsNoteTransportCost() {
        return goodsNoteTransportCost;
    }

    public void setGoodsNoteTransportCost(Double goodsNoteTransportCost) {
        this.goodsNoteTransportCost = goodsNoteTransportCost;
    }

    public Double getGoodsNoteEmbarkMeasure() {
        return goodsNoteEmbarkMeasure;
    }

    public void setGoodsNoteEmbarkMeasure(Double goodsNoteEmbarkMeasure) {
        this.goodsNoteEmbarkMeasure = goodsNoteEmbarkMeasure;
    }

    public String getGoodsOrderId() {
        return goodsOrderId;
    }

    public void setGoodsOrderId(String goodsOrderId) {
        this.goodsOrderId = goodsOrderId;
    }

    public List<GoodsOrderNoteDetail> getGoodsOrderNoteDetailList() {
        return goodsOrderNoteDetailList;
    }

    public void setGoodsOrderNoteDetailList(List<GoodsOrderNoteDetail> goodsOrderNoteDetailList) {
        this.goodsOrderNoteDetailList = goodsOrderNoteDetailList;
    }
}
